package com.liumuxian.exam.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Entity
@Table(name = "tb_examclassify")
public class ExamClassify {
    @Id
    private String id;

    @Column(name = "name",length = 20)
    private String name;

    @Column(name = "type",length = 1)
    private int type;//0免费1付费2以付费

    @Column(name = "price")
    private BigDecimal price;//价格

    @Column(name = "state",length = 1)
    private int state;

    @Column(name = "createdate")
    private Date createdate;

    @Column(name = "updatedate")
    private Date updatedate;
}
